package com.hl.service;

import com.hl.mapper.TimuMapper;
import com.hl.pojo.Timu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TimuServiceImpl implements TimuService{
    @Autowired
    private TimuMapper timuMapper;
    @Override
    public Integer add(Timu timu) {
        return timuMapper.add(timu);
    }

    @Override
    public Integer del(Timu timu) {
        return timuMapper.del(timu);
    }

    @Override
    public List<Timu> findAll() {
        return timuMapper.findAll();
    }

    @Override
    public List<Timu> findType(Timu timu) {
        return timuMapper.findType(timu);
    }

    @Override
    public Integer delType(Timu timu) {
        return timuMapper.delType(timu);
    }
}
